<%@ include file="../base/include.jsp"%>
<div class="page-header">
	<h1>${userCommand.name}</h1>
</div>
<table class="table">
	<tbody>
		<tr>
			<th width="130px">
				<div class="avatar">
					<img src="<c:url value="/avatar/${userStat.userId}" />" />
				</div>
			</th>
			<th>
				<h3>
					Registration date:
					<fmt:formatDate value="${userCommand.dateRegistred}"
						pattern="dd-MM-yyy hh:mm" type="date" />
			</th>
		</tr>
		<c:choose>
			<c:when test="${my}">
			</c:when>
			<c:otherwise>
				<tr>
					<td>
						<button class="btn"
							onclick="location.href='<c:url value='/message/create?toId=${userCommand.id}'/>'">
							Send message</button>
					</td>
				</tr>
			</c:otherwise>
		</c:choose>
	</tbody>
</table>
<script type="text/javascript">
	$('.a-tooltip').tooltip();
	
	$(function() {
		$('#menuProfile').addClass('active');
		$('#userMenu').addClass('active');
	});
</script>

